<!DOCTYPE html><html lang="en"><head><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><link rel="stylesheet" type="text/css" href="http://localhost:8080/source/default/style.css" /><title>OCaml Xref Test</title></head>
<body><div id="src"><pre>
<script type="text/javascript">/* <![CDATA[ */
function get_sym_list(){return [["Function","xf",[["x'y'",6]]]];} /* ]]> */</script><a class="l" name="1" href="#1">1</a><span class="c">(* The sample file. *)</span>
<a class="l" name="2" href="#2">2</a><a href="/source/s?defs=print_string" class="intelliWindow-symbol" data-definition-place="undefined-in-file">print_string</a> <span class="s">&quot;Hello World!\n&quot;</span>;;
<a class="l" name="3" href="#3">3</a>
<a class="l" name="4" href="#4">4</a><b>let</b> <a href="/source/s?defs=again" class="intelliWindow-symbol" data-definition-place="undefined-in-file">again</a> = <a href="/source/s?defs=print_string" class="intelliWindow-symbol" data-definition-place="undefined-in-file">print_string</a> <b>and</b>
<a class="l" name="5" href="#5">5</a>    <b>string</b> = <span class="s">{bar|Another string|bar}</span> <b>in</b>
<a class="l" name="6" href="#6">6</a>    (<a href="/source/s?defs=again" class="intelliWindow-symbol" data-definition-place="undefined-in-file">again</a> <span class="xm">[@tailcall</span>]) <b>string</b>;;
<a class="l" name="7" href="#7">7</a>    <span class="c">(* Note, identifier &apos;string&apos; is deliberately ignored
<a class="l" name="8" href="#8">8</a>                                                by tokenizer. *)</span>
<a class="l" name="9" href="#9">9</a>
<a class="hl" name="10" href="#10">10</a><b>type</b> <a href="/source/s?defs=%27a" class="intelliWindow-symbol" data-definition-place="undefined-in-file">&apos;a</a> <a href="/source/s?defs=tau" class="intelliWindow-symbol" data-definition-place="undefined-in-file">tau</a> = <a href="/source/s?defs=Tau" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Tau</a> <b>of</b> <a href="/source/s?defs=%27a" class="intelliWindow-symbol" data-definition-place="undefined-in-file">&apos;a</a> | <a href="/source/s?defs=Phi" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Phi</a> <b>of</b> <a href="/source/s?defs=%27a" class="intelliWindow-symbol" data-definition-place="undefined-in-file">&apos;a</a> <b>list</b> | <a href="/source/s?defs=Omicron" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Omicron</a>;;
<a class="l" name="11" href="#11">11</a><span class="c">(* Btw, do you know that
<a class="l" name="12" href="#12">12</a>   &apos;a is read as &#945;
<a class="l" name="13" href="#13">13</a>   &apos;b is read as &#223;
<a class="l" name="14" href="#14">14</a>   &apos;c is &#947; - &#947;&#940;&#956;&#956;&#945; ! *)</span>
<a class="l" name="15" href="#15">15</a>
<a class="l" name="16" href="#16">16</a><b>let</b> <a href="/source/s?defs=weLovePolymorphicVariants" class="intelliWindow-symbol" data-definition-place="undefined-in-file">weLovePolymorphicVariants</a> = [<a href="/source/s?defs=%60Right" class="intelliWindow-symbol" data-definition-place="undefined-in-file">`Right</a> ; <a href="/source/s?defs=%60OrNot" class="intelliWindow-symbol" data-definition-place="undefined-in-file">`OrNot</a> ; <a href="/source/s?defs=%60OrUnsure" class="intelliWindow-symbol" data-definition-place="undefined-in-file">`OrUnsure</a>];;
<a class="l" name="17" href="#17">17</a>
<a class="l" name="18" href="#18">18</a><b>let</b> <a href="/source/s?defs=weLoveVariablesWithQuotes%27" class="intelliWindow-symbol" data-definition-place="undefined-in-file">weLoveVariablesWithQuotes&apos;</a> = <b>function</b> <a href="/source/s?defs=None" class="intelliWindow-symbol" data-definition-place="undefined-in-file">None</a> -&gt; <a href="/source/s?defs=failwith" class="intelliWindow-symbol" data-definition-place="undefined-in-file">failwith</a> <span class="s">&quot;???&quot;</span>
<a class="l" name="19" href="#19">19</a>                                        | <a href="/source/s?defs=Some" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Some</a> <a href="/source/s?defs=reason" class="intelliWindow-symbol" data-definition-place="undefined-in-file">reason</a> -&gt;
<a class="hl" name="20" href="#20">20</a>                                                <b>let</b> <a href="/source/s?defs=_is_needed_for" class="intelliWindow-symbol" data-definition-place="undefined-in-file">_is_needed_for</a> = <span class="n">8n</span> <b>and</b>
<a class="l" name="21" href="#21">21</a>                                                    <a href="/source/s?defs=result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">result</a> = <a href="/source/s?defs=reason" class="intelliWindow-symbol" data-definition-place="undefined-in-file">reason</a> <b>in</b>
<a class="l" name="22" href="#22">22</a>                                                <a href="/source/s?defs=failwith" class="intelliWindow-symbol" data-definition-place="undefined-in-file">failwith</a> <a href="/source/s?defs=result" class="intelliWindow-symbol" data-definition-place="undefined-in-file">result</a>;;
<a class="l" name="23" href="#23">23</a><span class="c">(* Note: &apos;result&apos; is not ignored, like &apos;string&apos; *)</span>
<a class="l" name="24" href="#24">24</a><b>let</b> <a href="/source/s?defs=_sum_some_numbers" class="intelliWindow-symbol" data-definition-place="undefined-in-file">_sum_some_numbers</a> = <a href="/source/s?defs=Int64" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Int64</a>.<a href="/source/s?defs=to_int" class="intelliWindow-symbol" data-definition-place="undefined-in-file">to_int</a> <span class="n">10_8_8L</span> +
<a class="l" name="25" href="#25">25</a>    <a href="/source/s?defs=Nativeint" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Nativeint</a>.<a href="/source/s?defs=to_int" class="intelliWindow-symbol" data-definition-place="undefined-in-file">to_int</a> <span class="n">0xDEADF00Dn</span> + <a href="/source/s?defs=Int32" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Int32</a>.<a href="/source/s?defs=to_int" class="intelliWindow-symbol" data-definition-place="undefined-in-file">to_int</a> <span class="n">0o76l</span> + <span class="n">0b101</span> +
<a class="l" name="26" href="#26">26</a>                     <a href="/source/s?defs=Int32" class="intelliWindow-symbol" data-definition-place="undefined-in-file">Int32</a>.<a href="/source/s?defs=to_int" class="intelliWindow-symbol" data-definition-place="undefined-in-file">to_int</a> <span class="n">0b111001l</span> <b>in</b>
<a class="l" name="27" href="#27">27</a>();;
<a class="l" name="28" href="#28">28</a>
<a class="l" name="29" href="#29">29</a><b>let</b> <a href="/source/s?defs=_float_around" class="intelliWindow-symbol" data-definition-place="undefined-in-file">_float_around</a> = <span class="n">1.8E+23</span> +. <span class="n">1_2_3_4.8_8E-2</span> <b>in</b>
<a class="hl" name="30" href="#30">30</a>();;
<a class="l" name="31" href="#31">31</a></pre></div></body></html>
